export default {
    after(data) {
        if (data.packageName === 'android.util' && data.className === 'DisplayMetrics') {
            data.riskLevel = 1
            data.desc = '使用DisplayManager替换'
        }

        if (data.packageName === 'android.graphics' && data.className === 'Color') {
            data.riskLevel = 1
            data.desc = '使用ohos.agp.utils.Color替换'
        }

        if (data.packageName === 'android.graphics' && data.className === 'Typeface') {
            data.riskLevel = 1
            data.desc = '使用ResourceManager加载rawfile中的字体文件，并将其写入文件流中，最后使用ohos.agp.text.Font.Builder生成Font并设置到Text中'
        }

        if (data.packageName === 'android.util' && data.className === 'AttributeSet') {
            data.riskLevel = 1
            data.desc = '使用ohos.agp.components.AttrSet替换'
        }

        if (data.packageName === 'android.content.res' && data.className === 'TypedArray') {
            data.riskLevel = 1
            data.desc = '使用ohos.agp.components.AttrSet替换'
        }

        if (data.packageName === 'android.content' && data.className === 'Context') {
            data.riskLevel = 1
        }

        if (data.packageName === 'android.view' && data.className === 'MotionEvent') {
            data.riskLevel = 0
            data.desc = '使用TouchEvent替换'
        }

        if (data.packageName === 'android.os' && data.className === 'Environment') {
            data.riskLevel = 2
            data.desc = 'getExternalStorageDirectory等与存储目录相关的api，通过AbilityContext与Environment一起实现'
        }
    }
}
